package com.gxa.stu.entity.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 员工详情表
 * </p>
 *
 * @author gxa
 * @since 2022-11-03
 */
@Getter
@Setter
@TableName("tb_manager")
@ApiModel(value = "TbManager对象", description = "员工详情表")
public class TbManager implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自动增长主键")
      @TableId(value = "mgr_id", type = IdType.AUTO)
    private Integer mgrId;

    @ApiModelProperty("管理员编号: D001")
    private String mgrNum;

    @ApiModelProperty("管理员姓名")
    private String mgrName;

    @ApiModelProperty("管理员手机号")
    private String mgrPhone;

    @ApiModelProperty("管理员密码")
    private String mgrPwd;

    @ApiModelProperty("管理员类型,可选值:'人事经理','项目经理'")
    private String mgrType;

    @ApiModelProperty("管理员性别,可选值:'男','女'")
    private String mgrGender;

    @ApiModelProperty("管理员状态,可选值:'正常','请假','调休','出差'")
    private String mgrState;

    @ApiModelProperty("方向编号: JAVA,前端,测试对应编号")
    private Integer directId;

    @ApiModelProperty("创建时间,系统自动生成")
    private LocalDateTime created;

    @ApiModelProperty("最后一次修改时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updated;

    @ApiModelProperty("逻辑删除字段")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Boolean deleted;
}
